package com.daka.dao;

import com.daka.entity.IndexData;
import com.daka.entity.Topic;
import com.daka.mybatis.SQLMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beliveli on 2016/3/31 0031.
 */
@Repository(value = "indexDataMapper")
@SQLMapper
public interface IndexDataMapper {

    IndexData selectById(int id);

    List<IndexData> selectAll();

    int save(IndexData indexData);

    int updateDelStatus(@Param("status") Integer status,@Param("topicId") Integer topicId,
                        @Param("groupId")Integer groupId,@Param("activityId")Integer activityId);
}
